﻿using PublicCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T_settlement.Domain
{
    /// <summary>
    /// 进项（销项发票）
    /// </summary>
    [Table("Invoice")]
    public class Invoice: Audit
    {
        /// <summary>
        /// 发票ID
        /// </summary>
        [Key]
        public int InvoiceId { get; set; }

        /// <summary>
        /// 发票号
        /// </summary>
        /// 
        [StringLength(50)]
        public string? InvoiceNumber { get; set; }
        /// <summary>
        /// 开票单位
        /// </summary>
        /// 
        [StringLength(50)]
        public string? Ticket { get; set; }  

        /// <summary>
        /// 发票类型
        /// </summary>
        public  int? InvoiceType { get; set; }   

        /// <summary>
        /// 发票金额
        /// </summary>
        public decimal? InvoiceAmount { get; set;    }

        /// <summary>
        ///税率
        /// </summary>
        public decimal? Rate { get;set; }

        /// <summary>
        /// 税额
        /// </summary>
        public decimal? Tax { get;set; }

        /// <summary>
        /// 开票日期
        /// </summary>
        public DateTime? Invoicetime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        /// 
        [StringLength(100)]
        public string? Remark { get; set; }



    }
}
